package com.qf.card.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;

/****
 * @Author:shenkunlin
 * @Description:BankCard构建
 * @Date 2019/6/14 19:13
 *****/
@Table(name="bank_card")
public class BankCard implements Serializable{

	@Id
    @Column(name = "pk_bank_id")
	private Integer pkBankId;//银行卡id

    @Column(name = "user_id")
	private Integer userId;//用户id

    @Column(name = "bank_account")
	private String bankAccount;//银行卡账号

    @Column(name = "balance")
	private String balance;//余额

    @Column(name = "branch_state")
	private String branchState;//状态(正常:1/冻结0)（2：申请开户)

    @Column(name = "quota")
	private String quota;//每天最大限额

    @Column(name = "bank_pwd")
	private String bankPwd;//银行卡密码



	//get方法
	public Integer getPkBankId() {
		return pkBankId;
	}

	//set方法
	public void setPkBankId(Integer pkBankId) {
		this.pkBankId = pkBankId;
	}
	//get方法
	public Integer getUserId() {
		return userId;
	}

	//set方法
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	//get方法
	public String getBankAccount() {
		return bankAccount;
	}

	//set方法
	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}
	//get方法
	public String getBalance() {
		return balance;
	}

	//set方法
	public void setBalance(String balance) {
		this.balance = balance;
	}
	//get方法
	public String getBranchState() {
		return branchState;
	}

	//set方法
	public void setBranchState(String branchState) {
		this.branchState = branchState;
	}
	//get方法
	public String getQuota() {
		return quota;
	}

	//set方法
	public void setQuota(String quota) {
		this.quota = quota;
	}
	//get方法
	public String getBankPwd() {
		return bankPwd;
	}

	//set方法
	public void setBankPwd(String bankPwd) {
		this.bankPwd = bankPwd;
	}

	@Override
	public String toString() {
		return "BankCard{" +
				"pkBankId=" + pkBankId +
				", userId=" + userId +
				", bankAccount='" + bankAccount + '\'' +
				", balance='" + balance + '\'' +
				", branchState='" + branchState + '\'' +
				", quota='" + quota + '\'' +
				", bankPwd='" + bankPwd + '\'' +
				'}';
	}
}
